#!/usr/bin/env python
# -*- coding: utf-8 -*-
from mongoengine import connect

db_mongo = {
    "host": "10.10.2.149",
    # "host": "10.10.61.31",
    "port": 27017,
    "username": "opsmart",
    "password": r"q1w2e3r4",
    "db_name": "neikong",
    # "db_name": "miaozhen",
}

pymongo_client = connect(
    db=db_mongo['db_name'],
    username=db_mongo['username'],
    password=db_mongo['password'],
    host=db_mongo['host'],
    port=db_mongo['port']
)